package com.ylp.lianxi.myChainOfResponsibility;

/**
 * 日志接收处理者
 * 
 * @author Administrator
 *
 */
public abstract class AbstractLogger {

	// 责任链中的下一个元素
	protected AbstractLogger nextLogger;

	public void setNextLogger(AbstractLogger nextLogger) {
		this.nextLogger = nextLogger;
	}

	/**
	 * 写日志
	 * 
	 * @param msg
	 */
	public abstract void write(int level, String msg);
}
